<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<style>
fieldset {
	border: 1px solid #1ab394;
	padding: 10px;
}

legend {
	display: block;
	width: auto;
	padding: 0;
	margin-bottom: 0;
	font-size: 14px;
	color: #333;
	border: none;
}
</style>
<form id="addForm" method="post" class="form-horizontal">
	<fieldset>
		<legend>新增栏目</legend>
		<div class="form-group">
			<label class="col-sm-2 control-label">栏目</label>
			<div class="col-sm-10">
				<input type="text" class="form-control" id="categoryName"
					name="categoryName" maxlength="20">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label">图标样式</label>
			<div class="col-sm-10">
				<div id="fileList" class="uploader-list">
					<img alt="pic" style="height: 40px; width: 40px" src="http://photocdn.sohu.com/20161129/Img474427639.jpg">
				</div>
				<input type="file" class="form-control" id="iconClass"
					name="iconClass" data-options="prompt:'Choose a file...'"
					style="width: 75%; display: inline-block;" /> <a href="#"
					onclick="submitPic();" class="btn btn-primary"
					data-options="iconCls:'icon-save'" style="float: right;">提交</a>
			</div>
		</div>
		<!-- <div class="form-group">
			<label class="col-sm-2 control-label">图标样式</label>
			<div class="col-sm-10">
				<input type="text" class="form-control" id="iconClass"
					name="iconClass" maxlength="20">
			</div>
		</div> -->
		<!-- <div class="form-group">
			<form id="picForm" action="/upload" method="post" enctype="multipart/form-data">
			<label class="col-sm-2 control-label">图标样式</label>
			<div class="col-sm-10">
				<input type="file" class="form-control" id="iconClass"
					name="iconClass" data-options="prompt:'Choose a file...'"
					style="width: 75%; display: inline-block;" /> 
				<a href="#" onclick="submitPic();" class="btn btn-primary" data-options="iconCls:'icon-save'" style="float: right;">提交</a>
				<a class="btn btn-primary" data-options="iconCls:'icon-save'" style="float: right;">提交</a>
				<input type="submit" value="提交" class="btn btn-primary" style="float: right;" >
			</div>
			</form>
			<div id="picTip"></div>
		</div> -->

		<div class="form-group">
			<label class="col-sm-2 control-label">别名</label>
			<div class="col-sm-10">
				<input type="text" class="form-control" id="aliasName"
					name="aliasName" maxlength="20">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label">排序</label>
			<div class="col-sm-10">
				<input type="text" class="form-control" id="sort" name="sort">
			</div>
		</div>
		<div class="form-group">
			<div class="col-sm-4 col-sm-offset-4">
				<button class="btn btn-primary" type="button"
					onclick="saveAddCategory()">保存</button>
				<button class="btn btn-white" type="button"
					onclick="closeAddWindow()">取消</button>
			</div>
		</div>
	</fieldset>
</form>

